extends "../../../azurlane_ctrl/PlaneFighter.gd"
	
func _extInit():
	._extInit()
	chaName = "「战斗机」紫电改二"   #角色的名称
	lv = 3             #等级的设置
	attInfox.maxHpL += 0.15
	addSkillTxt("每次突进后嘲讽附近2格的目标并获得50%减伤，持续3秒")
	
var baseId = ""

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "tujin":
		for cha in getCellChas(cell, 2, 1):
			cha.addBuff(buff.b_chaoFeng.new(5))
			cha.aiCha = self
		if hasBuff("b_ziDian") == null:
			addBuff(b_ziDian.new())

class b_ziDian:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_ziDian"
		life = 3
	func _connect():
		masCha.connect("onHurt",self,"_onHurt")
	func _onHurt(atkInfo:AtkInfo):
		if atkInfo.hurtVal > 0 && not atkInfo.isMiss:
			atkInfo.hurtVal *= 0.5